<?php


namespace Plugin\AdCloak\Models;

use Illuminate\Database\Eloquent\Model;

class AdCloakUrls extends Model
{
    public $table = 'ad_cloak_urls';

    public $fillable = [
        'url_from', 'url_to','name', 'type',
    ];

    protected $appends = [
        'type_str'
    ];


    public function getTypeStrAttribute()
    {
        return $this->type == 1?"默认链接":"自定义链接";
    }
}
